package com.zs.demo.pojo.entity.system;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/* @Desc: 用户bean
 * @author:zhengs  
 * @Time: 2018/11/16 13:49
 * @Copyright: © zhengs 版权所有  
 * @Warning: 本内容仅限于本公司内部传阅,禁止外泄或用于其它商业目的
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class SysUser implements Serializable  {
    private static final long serialVersionUID = 1L;

    @TableId
    private String id;
    private String loginname;
    private String username;
    private Integer age;
    private String password;
    private String status;//用户状态，0表示无效，1表示有效
    @TableField(exist = false)
    private List<SysRole> roles;
    private String createBy;
    private Date createTime;
    private String modifyBy;
    private Date modifyTime;
}
